package org.jshand.cloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EchoController {


    /**
     * http://localhost:18082/echo/123
     * @param string
     * @return
     */
    @GetMapping(value = "/echo/{string}")
    public String echo(@PathVariable String string) {
        return "provide echo : "+string;
    }

}